messages = {
	{
		define = "struct", name = "DBCoolDown",
		attributes =
		{
			{type="int16", name="type", default = 0},
			{type="int32", name="time", default = 0},
			{type="int32", name="datax", default = 0},
			{type="int32", name="datay", default = 0},
			{type="int32", name="dataz", default = 0},
		}
	},
	{
		define = "msg", name="LoadCoolDowns", category = "Msg::MC_DB_CoolDown", id = 1, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="DBCoolDown", name = "cds", list = true},
		 },
		 handler =
		 {
			 sql = "load_cooldowns(%d)",
			 input = {"pid"},
			 output={list = true, type = "DBCoolDown", variable = "cds", "type","time","datax", "datay", "dataz"}
		 }
	},
	{
		define = "msg", name="CreateCoolDown", category = "Msg::MC_DB_CoolDown", id = 2, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="DBCoolDown", name = "cd"},
		 },
		 handler =
		 {
			 sql = "create_cooldown(%d, %d, %d, %d, %d, %d)",
			 input = {variable="cd", "pid", "type","time","datax", "datay", "dataz"},
		 }
	},
	{
		define = "msg", name="UpdateCoolDown", category = "Msg::MC_DB_CoolDown", id = 3, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="DBCoolDown", name = "cd"},
		 },
		 handler =
		 {
			 sql = "update_cooldown(%d, %d, %d, %d, %d, %d)",
			 input = {variable="cd", "pid", "type","time","datax", "datay", "dataz"},
		 }
	},
	{
		define = "msg", name="RemoveCoolDown", category = "Msg::MC_DB_CoolDown", id = 4, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="int32", name = "type", default = 0},
		 },
		 handler =
		 {
			 sql = "remove_cooldown(%d, %d)",
			 input = {"pid", "type"},
		 }
	 },
}

